/**
 * Copyright 2019-2022 Huawei Technologies Co., Ltd
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

#ifndef _HIAI_GRAPH_OP_GE_OP_IMAGE_PARA_UTILS_H
#define _HIAI_GRAPH_OP_GE_OP_IMAGE_PARA_UTILS_H
#include "image_defs.h"
#include "const_defs.h"
#include "graph/types.h"
#include "graph/tensor.h"
#include "tensor/image_process_config_types.h"


namespace hiai {
class GRAPH_API_EXPORT ImageParaUtil {
public:
    static hiai::op::Const CreateConfigConst(MultiCropPara& para, const string& name);
    static hiai::op::Const CreateConfigConst(MultiResizePara& para, const string& name);
    static hiai::op::Const CreateConfigConst(MultiDtcPara& para, const string& name);
    static hiai::op::Const CreateConfigConst(MultiRotatePara& para, const string& name);
    static hiai::op::Const CreateConfigConst(MultiPadPara& para, const string& name);
    static hiai::op::Const CreateConfigConst(CscPara& para, const string& name);
    static hiai::op::Const CreateConfigConst(ChannelSwapPara& para, const string& name);

    static hiai::op::ConfigData CreateConfigData(MultiCropPara& para, const string& name, const string& type);
    static hiai::op::ConfigData CreateConfigData(MultiResizePara& para, const string& name, const string& type);
    static hiai::op::ConfigData CreateConfigData(MultiDtcPara& para, const string& name, const string& type);
    static hiai::op::ConfigData CreateConfigData(MultiRotatePara& para, const string& name, const string& type);
    static hiai::op::ConfigData CreateConfigData(MultiPadPara& para, const string& name, const string& type);
    static hiai::op::ConfigData CreateConfigData(CscPara& para, const string& name, const string& type);
    static hiai::op::ConfigData CreateConfigData(ChannelSwapPara& para, const string& name, const string& type);
};
} // namespace hiai
#endif